package automatic.generate.code.model;

import org.misalen.utils.TextUtil;

public class FiledData {

	/**
	 * 对应字段名
	 */
	private String filedName;
	/**
	 * 示例名 sysUser
	 */
	private String simpleName;
	/**
	 * 注释
	 */
	private String comment;

	/**
	 * 字段类型
	 */
	private String filedType;
	
	/**
	 * 是否必填
	 */
	private Boolean nullable;
	/**
	 * 类名 SysUser
	 */
	private String classSimpleName;

	public String getClassSimpleName() {
		return classSimpleName;
	}

	public void setClassSimpleName(String classSimpleName) {
		this.classSimpleName = classSimpleName;
	}
	public Boolean getNullable() {
		return nullable;
	}

	public void setNullable(Boolean nullable) {
		this.nullable = nullable;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public String getFiledType() {
		return filedType;
	}

	public void setFiledType(String filedType) {
		this.filedType = filedType;
	}

	public String getFiledName() {
		return filedName;
	}

	public void setFiledName(String filedName) {
		this.filedName = filedName;
		setSimpleName(TextUtil.toLowerCaseFirstOne(filedName));
	}

	public String getSimpleName() {
		return simpleName;
	}

	public void setSimpleName(String simpleName) {
		this.simpleName = simpleName;
	}

}
